package com.vancouver.knows.business.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Chris Li on 2016-07-15.
 */
public class PostDetailInfo {

    @JSONField(name = "post_id")
    private String id;
    @JSONField(name = "post_title")
    private String title;
    @JSONField(name = "post_status")
    private String status;
    @JSONField(name = "post_author_id")
    private String authorId;
    @JSONField(name = "post_author")
    private String author;
    @JSONField(name = "post_permalink")
    private String permalink;
    @JSONField(name = "comment_count")
    private int commentCount;
    @JSONField(name = "post_content")
    private String content;
    @JSONField(name = "post_content_summary")
    private String summary;
    @JSONField(name = "follow_count")
    private String followCount;
    @JSONField(name = "upvote_count")
    private String upvoteCount;
    @JSONField(name = "post_date_gmt")
    private String pdg;
    @JSONField(name = "post_type")
    private String type;
    @JSONField(name = "post_ranking")
    private String ranking;
    @JSONField(name = "post_author_avatar")
    private String authorAvatar;
    @JSONField(name = "post_attachment_image")
    private String attachmentImage;
    @JSONField(name = "post_category")
    private List<String> categories;
    @JSONField(name = "userpost_attachment_image_array")
    private ArrayList<String> attachedImages;
    @JSONField(name = "userpost_city")
    private String city;
    @JSONField(name = "userpost_phone")
    private String phone;
    @JSONField(name = "userpost_email")
    private String email;
    @JSONField(name = "userpost_price")
    private String price;
    @JSONField(name = "user_followed")
    private String userFollowed;
    @JSONField(name = "category")
    private List<CategoryInfo> category;
    @JSONField(name = "sub_category")
    private List<SubcategoryInfo> subcategory;
    @JSONField(name = "post_modified_gmt")
    private String pmg;
    @JSONField(name = "post_modified")
    private String dateModified;
    @JSONField(name = "comment_disabled")
    private String isCommentDisabled;
    @JSONField(name = "contact_disabled")
    private String isContactDisabled;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPermalink() {
        return permalink;
    }

    public void setPermalink(String permalink) {
        this.permalink = permalink;
    }

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getFollowCount() {
        return followCount;
    }

    public void setFollowCount(String followCount) {
        this.followCount = followCount;
    }

    public String getUpvoteCount() {
        return upvoteCount;
    }

    public void setUpvoteCount(String upvoteCount) {
        this.upvoteCount = upvoteCount;
    }

    public String getPdg() {
        return pdg;
    }

    public void setPdg(String pdg) {
        this.pdg = pdg;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRanking() {
        return ranking;
    }

    public void setRanking(String ranking) {
        this.ranking = ranking;
    }

    public String getAuthorAvatar() {
        return authorAvatar;
    }

    public void setAuthorAvatar(String authorAvatar) {
        this.authorAvatar = authorAvatar;
    }

    public String getAttachmentImage() {
        return attachmentImage;
    }

    public void setAttachmentImage(String attachmentImage) {
        this.attachmentImage = attachmentImage;
    }

    public List<String> getCategories() {
        return categories;
    }

    public void setCategories(List<String> categories) {
        this.categories = categories;
    }

    public ArrayList<String> getAttachedImages() {
        return attachedImages;
    }

    public void setAttachedImages(ArrayList<String> attachedImages) {
        this.attachedImages = attachedImages;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public List<CategoryInfo> getCategory() {
        return category;
    }

    public void setCategory(List<CategoryInfo> category) {
        this.category = category;
    }

    public List<SubcategoryInfo> getSubcategory() {
        return subcategory;
    }

    public void setSubcategory(List<SubcategoryInfo> subcategory) {
        this.subcategory = subcategory;
    }

    public String getUserFollowed() {
        return userFollowed;
    }

    public void setUserFollowed(String userFollowed) {
        this.userFollowed = userFollowed;
    }

    public String getPmg() {
        return pmg;
    }

    public void setPmg(String pmg) {
        this.pmg = pmg;
    }

    public String getDateModified() {
        return dateModified;
    }

    public void setDateModified(String dateModified) {
        this.dateModified = dateModified;
    }

    public String isCommentDisabled() {
        if (isCommentDisabled == null) {
            return "N";
        }

        return isCommentDisabled;
    }

    public void setIsCommentDisabled(String isCommentDisabled) {
        this.isCommentDisabled = isCommentDisabled;
    }

    public String isContactDisabled() {
        if (isContactDisabled == null) {
            return "N";
        }

        return isContactDisabled;
    }

    public void setIsContactDisabled(String isContactDisabled) {
        this.isContactDisabled = isContactDisabled;
    }
}
